package cn.bisoft.java.bean.entity;

import java.io.Serializable;



/**
 * This is an object that contains data related to the AnteFrontWinLog table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="AnteFrontWinLog"
 */

public abstract class BaseAnteFrontWinLog  implements Serializable {
	private static final long serialVersionUID = 1L;
	public static String REF = "AnteFrontWinLog";
	public static String PROP_STATE = "state";
	public static String PROP_ISSUE_ID = "issueId";
	public static String PROP_SEND_TIME = "sendTime";
	public static String PROP_WIN_MESSAGE = "winMessage";
	public static String PROP_GAME_ID = "gameId";
	public static String PROP_SEQ_NO = "SeqNo";
	public static String PROP_ISSUE_NAME = "issueName";
	public static String PROP_COUNTER_I_D = "counterID";


	// constructors
	public BaseAnteFrontWinLog () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteFrontWinLog (java.lang.Long seqNo) {
		this.setSeqNo(seqNo);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteFrontWinLog (
		java.lang.Long seqNo,
		java.lang.String counterID,
		java.lang.Integer issueId,
		java.lang.String issueName,
		java.lang.Integer gameId,
		java.lang.Integer state,
		java.lang.String winMessage) {

		this.setSeqNo(seqNo);
		this.setCounterID(counterID);
		this.setIssueId(issueId);
		this.setIssueName(issueName);
		this.setGameId(gameId);
		this.setState(state);
		this.setWinMessage(winMessage);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Long seqNo;

	// fields
	private java.lang.String counterID;
	private java.lang.Integer issueId;
	private java.lang.String issueName;
	private java.lang.Integer gameId;
	private java.lang.Integer state;
	private java.util.Date sendTime;
	private java.lang.String winMessage;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="SeqNo"
     */
	public java.lang.Long getSeqNo () {
		return seqNo;
	}

	/**
	 * Set the unique identifier of this class
	 * @param seqNo the new ID
	 */
	public void setSeqNo (java.lang.Long seqNo) {
		this.seqNo = seqNo;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: CounterID
	 */
	public java.lang.String getCounterID () {
		return counterID;
	}

	/**
	 * Set the value related to the column: CounterID
	 * @param counterID the CounterID value
	 */
	public void setCounterID (java.lang.String counterID) {
		this.counterID = counterID;
	}



	/**
	 * Return the value associated with the column: IssueId
	 */
	public java.lang.Integer getIssueId () {
		return issueId;
	}

	/**
	 * Set the value related to the column: IssueId
	 * @param issueId the IssueId value
	 */
	public void setIssueId (java.lang.Integer issueId) {
		this.issueId = issueId;
	}



	/**
	 * Return the value associated with the column: IssueName
	 */
	public java.lang.String getIssueName () {
		return issueName;
	}

	/**
	 * Set the value related to the column: IssueName
	 * @param issueName the IssueName value
	 */
	public void setIssueName (java.lang.String issueName) {
		this.issueName = issueName;
	}



	/**
	 * Return the value associated with the column: GameId
	 */
	public java.lang.Integer getGameId () {
		return gameId;
	}

	/**
	 * Set the value related to the column: GameId
	 * @param gameId the GameId value
	 */
	public void setGameId (java.lang.Integer gameId) {
		this.gameId = gameId;
	}



	/**
	 * Return the value associated with the column: State
	 */
	public java.lang.Integer getState () {
		return state;
	}

	/**
	 * Set the value related to the column: State
	 * @param state the State value
	 */
	public void setState (java.lang.Integer state) {
		this.state = state;
	}



	/**
	 * Return the value associated with the column: SendTime
	 */
	public java.util.Date getSendTime () {
		return sendTime;
	}

	/**
	 * Set the value related to the column: SendTime
	 * @param sendTime the SendTime value
	 */
	public void setSendTime (java.util.Date sendTime) {
		this.sendTime = sendTime;
	}



	/**
	 * Return the value associated with the column: WinMessage
	 */
	public java.lang.String getWinMessage () {
		return winMessage;
	}

	/**
	 * Set the value related to the column: WinMessage
	 * @param winMessage the WinMessage value
	 */
	public void setWinMessage (java.lang.String winMessage) {
		this.winMessage = winMessage;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof AnteFrontWinLog)) return false;
		else {
			AnteFrontWinLog anteFrontWinLog = (AnteFrontWinLog) obj;
			if (null == this.getSeqNo() || null == anteFrontWinLog.getSeqNo()) return false;
			else return (this.getSeqNo().equals(anteFrontWinLog.getSeqNo()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getSeqNo()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getSeqNo().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}